package com.example.myapplication.data.model;

import java.util.List;

public class NewsResponse {
    private String reason;
    private Result result;
    private int error_code;

    public String getReason() {
        return reason;
    }

    public Result getResult() {
        return result;
    }

    public int getError_code() {
        return error_code;
    }

    public static class Result {
        private int curpage;
        private int allnum;
        private List<NewsArticle> newslist;

        public int getCurpage() {
            return curpage;
        }

        public int getAllnum() {
            return allnum;
        }

        public List<NewsArticle> getNewslist() {
            return newslist;
        }
    }
}
